package com.yuandengta.yomall.cart.feign;


import com.yuandengta.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 商品远程服务 {@link ProductFeignService}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@FeignClient("yomall-product")
public interface ProductFeignService {

    /**
     * 查询商品详细信息
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

    /**
     * 查询sku销售属性
     * @param skuId
     * @return
     */
    @GetMapping("/product/skusaleattrvalue/strlist/{skuId}")
    List<String> getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);
}
